package com.util;

import java.text.SimpleDateFormat;

public class SerialNumberUtil {

	public static String getSerialNumber(String str, int i) {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
		String firstN = str;
		String secondN = sdf.format(System.currentTimeMillis());
		String thirdN = String.format("%04d", i);
		return firstN + "-" + secondN + "-" + thirdN;
	}
}
